package cn.sofwin.day0123.homework.t01;
/**
 * 项目经历类
 * @author 仙女本仙
 * @email 1335651292@qq.com
 */
public class  ProjectManager extends Person{
    /** 奖金 */
    private double bonus;

    public double getBonus() {
        return bonus;
    }

    public void setBonus(double bonus) {
        this.bonus = bonus;
    }

    public ProjectManager(String name, String jnumber, double salary, double bonus) {
        super(name, jnumber, salary);
        this.bonus = bonus;
    }

    public void work(){
        System.out.print("姓名：" + super.getName() + "  工号：" + super.getJnumber());
        System.out.println("  工资：" + super.getSalary() + "  奖金：" + this.bonus);
    }
}
